1. /* siostrm.cpp by K.Tsuru */
  2. // function ID = 430 BRADIX
  3. /*********************************
  4. SInteger class
  5. output stream
  6. It outputs in the four hexadecimal figures
  7. with radix = BRADIX = 2^15.
  8. The maximum vakue of figure is "7fff".
  9. **********************************/
  10. #ifndef SN_H
  11. #include "sn.h"
  12. #endif
  13. ostream& operator<<(ostream& os, const SInteger& m) {
  14. int i = m.Head();
  15. //cout <<"in << SInteger" << endl; getchar();
  16. int dm = m.delmt;
  17. os << std::hex << m(i); os.put(dm); i--;
  18. for(; i>= 0; i-- ){
  19. os << std::hex << std::setw(4)<< std::setfill('0') << m(i);
  20. if(i) os.put(dm);
  21. //cout << "m(" << i << ")=" << m(i) << endl;
  22. }
  23. os << endl;
  24. return os;
  25. }

siostrm.cpp : last modifiled at 2016/03/22 15:14:22(696 bytes)
created at 2016/04/25 14:53:17
The creation time of this html file is 2017/10/25 11:09:45 (Wed Oct 25 11:09:45 2017).